// import request from '@/utils/request'
import axios from 'axios'
const service = axios.create({
    baseURL: 'http://122.51.249.55:7001',
})
service.interceptors.request.use(config => {
        // 如果登录了就要携带token
        config.headers.Authorization = 'Bearer ' + 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjIsImlhdCI6MTY0NjYxNTkxOCwiZXhwIjoxNjc3NzE5OTE4fQ.thBEM6pwaSJLio9SeaX3Jr61ZqWiVbfhnNVoXEVAKd0'
        return config
    }, error => {
        return Promise.reject(error)
    })
    // 组题列表
export function randomsListData(params) {
    return service({
        url: '/questions/randoms/',
        method: 'GET',
        params
    })
}